home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
gfx
/
opal
/
OVLine11.lzh
/
ovgif.doc
< prev
next >
Wrap
Text File
|
1993-02-22
|
4KB
|
114 lines
/* OVGIF ---- GIF Viewer for Opalvision -------
Copyright 1992 Jim Boros, all rights reserved.
Version 0.80 December 12, 1992
*/
I: INTRODUCTION:
While the OpalVision system is a fantastic display card and paint program
for the Amiga, it currently lacks support for GIF format images. It is often
desirable to view GIF images, often those imported from other platforms via
disk, BBS, or even CD-ROM. I decided to write a simple loader for this purpose.
With OpalVision and ovgif, you can view all those colo(u)rful pictures on
your Amiga.
II: DESCRIPTION:
OVGIF loads in a GIF87a format file, decodes it, and displays it on the
OpalVision Screen. Its memory usage depends on the size of image being loaded.
It opens three large memory arrays besides its working area ( around 100K).
The first is the size of the file to load the compressed data, then it allocates
another area to place the uncompressed (Raster) data in, this is the Height
times Width, one byte per pixel. Then it releases the first (disk ) buffer
and allocates a virtual OpalVision screen in memory. An 8 bit, Palette mapped
mode is always used, as the GIF format uses up to 256 registered colors, and
this uses a third of the memory of the 24 Bit screen.
Because image sizes and depths vary widely, this program centers the image
in the display. A small image will appear in the center, and have the outer
parts of the screen filled in with a plain color. An oversized image will be
centered, with both extremes going off the screen. I found this better than
the upper left justification. Most images I've encountered are 640X480 and
all but the top and bottom few lines are visible.
It supports GIF87a images in any color depth up to 8 bit (256 colors), and
size within memory limits. This version is written in SAS C 6.1 and is optimized
as much as possible. It is slightly faster than the JPEG loads, but not as
fast as an IFF24 or OVFAST. If interest is sufficient, the decompression code
will be rewritten in assembly. On an Amiga 2000 with a GVP 030 board, it takes
approximately 15 seconds to load a 640x480x256 color GIF. Smaller images take
less time, as low as 3-5 seconds.
III: REQUIREMENTS:
OpalVision Board.
Amiga 2000 to 4000 with 2Meg of Ram.
Accelerator strongly recommended.
IV: USE:
This is simple to use, it can be called from the CLI or Shell by typing
"ovgif" followed by the filename (including .gif). It may also be launched
as a task from a directory utility such as SID 2.0. It is best to click on
single files instead of whole groups.
The window will display some data about the picture and how long it took
to load ( this mainly for my development). Then the image is displayed.
To close, click the left mouse button.
At this release level, no set contribution is requested. If you find
this program extremely useful and use it regularly, feel free to send a
small donation. For any donation over five dollars, I'll send a disk with
some other useful Opalvision programs, and pictures. The more people respond
in this manner, the more features on the list below will be added, and I will
write more utilities like this.
Send Contributions and Bug reports to:
Jim Boros C/O
Borotec
PO Box 17149
Euclid, Ohio 44117
VII: DISCLAIMER:
This software is distributed without warranty of any kind. Neither Jim
Boros, Borotec, any associates or employees, or other parties will be liable
for any loss of data, hardware,or any lost productivity and any damages relating
therefrom.
VIII: TO DO LIST:
1) Add Scrolling for oversized images.
2) Put a save feature to save image in OpalVision supported formats.
3) Support for GIF89a type images.
4) Ability to "Stamp" image in as a backdrop to WorkBench.
5) Recode some or all of the decoding routines in assembler.
IV: TRADEMARKS:
OpalVision is a trademark of Opal Technology Pty Ltd.
Amiga and WorkBench ar trademarks of Commodore-Amiga Inc.
SID is a program written by Timm Martin.
This is very worthwile shareware.